package com.vincent.kdp.ui.other.repository;

import com.loopj.android.http.RequestParams;
import com.vincent.kdp.PostUrl;
import com.vincent.kdp.http.HttpUtil;
import com.vincent.kdp.http.RequestCallBack;
import com.vincent.kdp.ui.bean.response.MemberSearchOutput;
import com.vincent.kdp.util.BaseParam;

/**
 * Created by pg on 2017/1/24.
 */

public class MemberSearchRepository {

    /**
     * 获取热门商品列表
     *
     * @param callBack 回调方法
     */
    public void reqMemberSearchList(String phone, String startTime, String endTime ,int pageNum, RequestCallBack callBack) {
        RequestParams params = new RequestParams();
        params.put("number", BaseParam.getDeviceId());
        params.put("phone",phone);
        params.put("startTime",startTime);
        params.put("endTime",endTime);
        params.put("pageNum",pageNum);
        params.put("pageNum",pageNum);
        HttpUtil.loadData(PostUrl.EXACT_QUERY, params, MemberSearchOutput.class, callBack);
    }
}
